package com.arges.controller;

import com.arges.pojo.TestPojo;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author GuiChen
 */
public class Test4 {

    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);
        Date date1 = new Date(1621399884000L);

        System.out.println(date1);

        String currentTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(1669280629000L);
        System.out.println(currentTime);
        TestPojo testPojo = new TestPojo();
        testPojo.setId(2);
        testPojo.setUsername("testPojo");
        testPojo.setPassword(11.0F);
        System.out.println(testPojo.getId() == null ? 1 : testPojo.getId());

    }
}
